package com.itboy.mall.wms.warepurchase.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 采购信息对象 mall_ware_purchase
 *
 * @author itboy
 * @date 2021-08-10
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_ware_purchase")
public class MallWarePurchase implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * 采购单id
     */
    @TableId(value = "id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 采购人id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long assigneeId;

    /**
     * 采购人名
     */
    private String assigneeName;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 优先级
     */
    private Integer priority;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 仓库id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long wareId;

    /**
     * 总金额
     */
    private BigDecimal amount;

    /**
     * 创建日期
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
